home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 1 / Cream of the Crop 1.iso / PROGRAM / UCRASM25.ARJ / ADDCHAR.ASM next >
Assembly Source File  |  1991-10-12  |  564b  |  37 lines

  1. StdGrp        group    stdlib,stddata
  2. stddata        segment    para public 'sldata'
  3. stddata        ends
  4. ;
  5. stdlib        segment    para public 'slcode'
  6.         assume    cs:stdgrp
  7. ;
  8. ;
  9. ; AddChar-    Unions a character into a set.
  10. ;
  11. ; inputs:
  12. ;
  13. ;    ES:DI-  Points at the set (at its mask byte).
  14. ;    AL-    Character to union into the set.
  15. ;
  16. ;
  17. ;
  18.         public    sl_AddChar
  19. ;
  20. sl_AddChar    proc    far
  21.         push    ax
  22.         push    bx
  23. ;
  24.         mov    bl, al
  25.                 mov    bh, 0
  26.         mov    al, es:[di]        ;Get mask byte
  27.         or    es:8[di][bx], al    ;Add to set
  28. ;
  29.         pop    bx
  30.         pop    ax
  31.         ret
  32. sl_AddChar    endp
  33. ;
  34. ;
  35. stdlib        ends
  36.         end
  37.